package mandreelFile;

import java.util.Objects;

@FunctionalInterface
public interface MyConsumer<T, U, M> {
    void accept(T t, U u, M m);

    default MyConsumer<T, U, M> andThen(MyConsumer<? super T, ? super U, ? super M> after) {
        Objects.requireNonNull(after);

        return (l, r, m) -> {
            accept(l, r, m);
            after.accept(l, r, m);
        };
    }
}